#ifndef CMD_BASE_H
#define CMD_BASE_H

#ifdef __cplusplus
extern "C"
{
#endif

#define MAX_CMD_TYPE  3
#define CMD_LEN_MAX   128

typedef enum
{
  CH_COM  = 0,
  CH_BLE  = 1,
  CH_WIFI = 2,
  CH_GSM  = 3,
}Channel;

#define CMD_CONTINUE		  1
#define CMD_FINISH		   	2
#define CMD_MISS_MATCH		3


void cmd_put(uint8_t *data, int len, void (*tx)(uint8_t *buf,int len));  //协议报文处理函数

#ifdef __cplusplus
}
#endif

#endif

